package com.nervenets.web.controller;

import com.nervenets.web.entity.ResponseResult;
import com.nervenets.web.enumeration.Role;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "测试接口v1", description = "测试类接口")
@RestController
@RequestMapping("/api/v1/test")
public class TestController extends BaseController {

    @ApiOperation(value = "管理员权限列表", response = Role.class)
    @PostMapping("/adminRoles")
    public ResponseResult adminRoles() {
        return successMessage(Role.values());
    }

    public ResponseResult test() {
        return successMessage("test");
    }
}
